package com.tboss.template.system.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import com.tboss.template.system.dao.SystemDao;
import com.tboss.template.system.dto.SystemDto;

@Service
public class SystemService {
	
	@Autowired SystemDao systemDao;

	public void systemMain(String sysCode, Model model){
		model.addAttribute("systemTreeviewRootId", sysCode);
	}
	
	public SystemDto getSysBase(SystemDto dto){
		return this.systemDao.getSysBase(dto);
	}
	
}
